<link href="$!webPath/resources/style/common/css/window.css" type="text/css" rel="stylesheet" />
<script>
jQuery(document).ready(function(){
   jQuery("#theForm").validate({
       rules: {
			gold_payment:{required:true},
			gold_amount:{required:true,range:[0.01,10000]},
			gold_remittance_user:{required:true},
			gold_remittance_bank:{required:true},
			gold_remittance_time:{required:true}
		  },
	   messages: {
		    gold_payment:{required:"支付方式不能为空"},
			gold_amount:{required:"充值金额不能为空",range:"请输入大于{0}的金额数字"},
			gold_remittance_user:{required:"汇款人不能为空"},
			gold_remittance_bank:{required:"汇款银行不能为空"},
			gold_remittance_time:{required:"汇款时间不能为空"}
	     }
  });
   //
    jQuery('#gold_remittance_time').datepicker({
        dateFormat:"yy-mm-dd",
		yearRange:"1950:2020",
		changeMonth: true,
		changeYear: true
  });
});
</script>
<form action="$!webPath/seller/gold_record_save.htm" method="post" id="theForm">
  <table style="float:left;" width="480" border="0" cellspacing="0" cellpadding="0" class="box_table">
    <tr>
      <td align="right" valign="top">支付方式：</td>
                    #if($!obj.gold_payment=="alipay")
                      #set($gold_payment="支付宝")
                    #end
                    #if($!obj.gold_payment=="bill")
                      #set($gold_payment="快钱")
                    #end
                    #if($!obj.gold_payment=="chinabank")
                      #set($gold_payment="网银在线")
                    #end
                    #if($!obj.gold_payment=="tenpay")
                      #set($gold_payment="财付通")
                    #end
                    #if($!obj.gold_payment=="outline")
                      #set($gold_payment="线下支付")
                    #end
                    #if($!obj.gold_payment=="balance")
                      #set($gold_payment="预付款支付")
                    #end
      <td align="left">$!gold_payment</td>
    </tr>
    <tr>
      <td align="right" valign="top">支付金额：</td>
      <td align="left">¥$!{obj.gold_money}</td>
    </tr>
    #if($!obj.gold_payment=="outline")
    <tr>
      <td width="100" align="right" valign="top">兑换金币数：
      </td>
      <td align="left">$!{obj.gold_count}</td>
    </tr>
    #end
    <tr>
      <td align="right" valign="top">兑换备注：</td>
      <td align="left"><textarea name="gold_exchange_info" cols="35" rows="6" id="gold_exchange_info">$!obj.gold_exchange_info</textarea></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><span class="inputbtn">
        <input type="submit" value="支付" style="cursor:pointer;"/>
        <input name="currentPage" type="hidden" id="currentPage" value="$!currentPage" />
        <input name="id" type="hidden" id="id" value="$!obj.id" />
        <input name="gold_payment" type="hidden" id="gold_payment" value="$!obj.gold_payment" />
        <input name="gold_session" type="hidden" id="gold_session" value="$!gold_session" />
      </span></td>
    </tr>
  </table>
</form>
